//
//  VerifyUploadView.m
//  WisdomStar
//
//  Created by 谭飞 on 2018/11/14.
//  Copyright © 2018年 zhangliwen. All rights reserved.
//

#import "VerifyUploadView.h"

@interface VerifyUploadView ()
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UIImageView *coverImageView;
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UIButton *uploadBtn;

@end

@implementation VerifyUploadView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.uploadBtn.layer.cornerRadius = self.uploadBtn.xmg_height/2;
    self.uploadBtn.layer.masksToBounds = YES;
}

- (IBAction)uploadBtnClicked:(id)sender {
    if (self.didUploadCallback) {
        self.didUploadCallback();
    }
}

#pragma mark - Setters

- (void)setTitle:(NSString *)title {
    self.titleLab.text = title;
}

- (void)setImage:(UIImage *)image {
    _image = image;
    self.coverImageView.image = image;
}

- (void)setIcon:(UIImage *)icon {
    self.iconView.image = icon;
}

- (void)setIsHideIcon:(BOOL)isHideIcon {
    self.iconView.hidden = isHideIcon;
}

@end
